package com.hxc.basicdata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 组别信息对象 t_group_info
 * 
 * @author hxc
 * @date 2021-08-11
 */
public class TGroupInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 组别名称 */
    @Excel(name = "组别名称")
    private String groupName;
    /**  火星码状态(0黄码，1红码，2绿码) */
    private Integer codeState;
    /**  经度 */
    private String longitude;
    /**  纬度 */
    private String latitude;
    @Excel(name = "地址")
    private String address;
    /**  社区id */
    private Integer communityId;

    /** ----------------------------------表关联字段----------------------------- */
    /**  社区名称 */
    @TableField(exist = false)
    private String areaName;

    public void setId(Long id) { this.id = id; }
    public Long getId() { return id; }

    public void setGroupName(String groupName) { this.groupName = groupName; }
    public String getGroupName() { return groupName; }

    public Integer getCodeState() { return codeState; }
    public void setCodeState(Integer codeState) { this.codeState = codeState; }

    public String getLongitude() { return longitude; }
    public void setLongitude(String longitude) { this.longitude = longitude; }

    public String getLatitude() { return latitude; }
    public void setLatitude(String latitude) { this.latitude = latitude; }

    public String getAddress() { return address; }
    public void setAddress(String address) { this.address = address; }

    public Integer getCommunityId() { return communityId; }
    public void setCommunityId(Integer communityId) { this.communityId = communityId; }

    public String getAreaName() { return areaName; }
    public void setAreaName(String areaName) { this.areaName = areaName; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupName", getGroupName())
            .append("codeState", getCodeState())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("address", getAddress())
            .append("communityId", getCommunityId())
            .append("createTime", getCreateTime())
            .append("areaName", getAreaName())
            .toString();
    }
}
